package com.zzy.database.mapper;

import com.zzy.database.pojo.Customer;
import com.zzy.database.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CustomerMapper {

    int insertCustomer(@Param("id") String id, @Param("username") String username);
    String findCustomerIdByUsername(@Param("username")String username);
    void addCustomer(Customer customer);
    void updateCustomer(Customer customer);
    void deleteCustomer(String customerId);
    void complete(Customer customer);
    Customer getCustomerById(String customerId);

    List<Customer> getAllCustomers();
}
